package com.bricker.laboratorymanagement.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@TableName("sys_group")
public class SysGroup implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private String userIds;

    private Integer size;

    private Long exId;

    private String declaration;

    private Long createdBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    private Long updatedBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;

    private String delFlag;

    /**
     * 当前小组人数
     */
    @TableField(exist = false)
    private Integer currentSize;

    /**
     * 组长姓名
     */
    @TableField(exist = false)
    private String  createByName;

    /**
     * 小组实验项目名称
     */
    @TableField(exist = false)
    private String exName;

    /**
     * 当前操作人在此条数据中的操作状态（0.审批中1.未通过 2.已通过 3.无操作 ）
     */
    @TableField(exist = false)
    private  String status;
    /**
     * 小组成员名称（多个以逗号隔开）
     */
    @TableField(exist = false)
    private String userNames;

    private static final long serialVersionUID = 1L;

}